

import { testAccountName} from '@/util/util';
export default {
  column: [{
    label: '个人信息',
    prop: 'info',
    option: {
      submitText: '修改',
      size: 'small',
      labelWidth: 60,
      column: [{
        label: '头像',
        type: 'upload',
        listType: 'picture-img',
        propsHttp: {
          res: 'data',
          url:'src'
        },
        action: `/res/album/sys_img_upload?album_code=pic_user_photo`,
        tip: '',
        span: 16,
        prop: 'avatar'
      }, {
        label: '姓名',
        span: 12,
        prop: 'name',
		rules: [
			{
				required: true,
				message: '请输入姓名',
				trigger: 'blur'
			},
			{
				validator: testAccountName,
				trigger: 'blur'
			},
		]
      }/*, {
        label: '邮箱',
        row: true,
        span: 12,
        prop: 'email'

      }, {
        label: '部门',
        span: 8,
        prop: 'deptName'
      }, {
        label: '地址',
        span: 24,
        prop: 'dz'
      }*//*, {
        label: '标签',
        span: 24,
        type: 'select',
        multiple: true,
        prop: 'bq',
        dicData: [{
          label: 'Mall',
          value: 1
        }, {
          label: 'Roses',
          value: 2
        }]
      }*/]
    }
  }, {
    label: '修改密码',
    prop: 'password',
    option: {
      labelWidth: 100,
      size: 'small',
      submitText: '修改',
      column: [{
        label: '原密码',
        span: 16,
        row: true,
        type: 'password',
        prop: 'oldPassword',
        rules: [{
          required: true,
          message: "请输入原密码",
          trigger: "blur"
        }]
      }, {
        label: '新密码',
        span: 16,
        row: true,
        type: 'password',
        prop: 'newPassword',
        rules: [{
          required: true,
          message: "请输入新密码",
          trigger: "blur"
        }]
      }, {
        label: '确认密码',
        span: 16,
        row: true,
        type: 'password',
        prop: 'newPasswords',
        rules: [{
          required: true,
          message: "请确认新密码",
          trigger: "blur"
        }]
      }]
    }
  }]
}

